package com.nifostasky.comic.entitys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("sys_org")
@ApiModel(description="行政机构业务管理")
public class SysOrg extends SysBaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "名称",required = true)
    @TableField("org_name")
    private String orgName;

    @ApiModelProperty(value = "别名",required = true)
    @TableField("alias_name")
    private String aliasName;

    @ApiModelProperty(value = "父节点(最高层级为0,但不为空)",required = true)
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty(value = "节点类型(可数据字典配置)0.行政区域(默认)")
    @TableField("org_type")
    private Long orgType;

    @ApiModelProperty(value = "区域编码")
    @TableField("org_code")
    private String orgCode;

    @ApiModelProperty(value = "所属组织机构编号：唯一不可修改")
    @TableField("org_num")
    private Integer orgNum;

    @ApiModelProperty(value = "国家级(标准code)")
    @TableField("original_code")
    private String originalCode;

    @ApiModelProperty(value = "组织层级(数据字典配置)  层级 0.国家 1.省 2.市 3.区县 4.乡镇/街道办")
    @TableField("org_level")
    private Integer orgLevel;

    @ApiModelProperty(value = "是否启用(1:启用、2：禁用)",required = true)
    @TableField("org_status")
    private Integer orgStatus;

    @ApiModelProperty(value = "排序",required = true)
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "经度中心点")
    @TableField("lon")
    private String lon;

    @ApiModelProperty(value = "纬度中心点")
    @TableField("lat")
    private String lat;

    @ApiModelProperty(value = "描述信息")
    @TableField("remark")
    private String remark;
}
